package com.smart.seckilldemo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

@Data
@TableName(value = "t_good")
public class Good {
    /**
     * 主键
     */
    @TableId(value = "good_id", type = IdType.INPUT)
    private Long goodId;

    /**
     * 商品详情网址
     */
    @TableField(value = "good_href")
    private String goodHref;

    /**
     * 商品名
     */
    @TableField(value = "good_name")
    private String goodName;

    /**
     * 商品价格
     */
    @TableField(value = "good_price")
    private Double goodPrice;

    /**
     * 商品所属店铺
     */
    @TableField(value = "good_shop")
    private String goodShop;

    /**
     * 商品图片路径
     */
    @TableField(value = "good_img")
    private String goodImg;

    /**
     * 商品销售形式
     */
    @TableField(value = "good_icon")
    private String goodIcon;

    /**
     * 创建时间
     */
    @TableField(value = "created_time")
    private Date createdTime;

    /**
     * 更新时间
     */
    @TableField(value = "updated_time")
    private Date updatedTime;

    /**
     * 商品种类
     */
    @TableField(value = "good_type")
    private Integer goodType;

    /**
     * 商品库存
     */
    @TableField(value = "good_count")
    private Integer goodCount;

    /**
     * 商品状态
     */
    @TableField(value = "good_up")
    private Integer goodUp;

    /**
     * 删除状态（0代表删除，1代表未删除）
     */
    @TableField(value = "delete_type")
    private Integer deleteType;

    public static final String COL_GOOD_ID = "good_id";

    public static final String COL_GOOD_HREF = "good_href";

    public static final String COL_GOOD_NAME = "good_name";

    public static final String COL_GOOD_PRICE = "good_price";

    public static final String COL_GOOD_SHOP = "good_shop";

    public static final String COL_GOOD_IMG = "good_img";

    public static final String COL_GOOD_ICON = "good_icon";

    public static final String COL_CREATED_TIME = "created_time";

    public static final String COL_UPDATED_TIME = "updated_time";

    public static final String COL_GOOD_TYPE = "good_type";

    public static final String COL_GOOD_COUNT = "good_count";

    public static final String COL_GOOD_UP = "good_up";

    public static final String COL_DELETE_TYPE = "delete_type";
}